﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BHTT
{
    public partial class Index : System.Web.UI.Page, ICallbackEventHandler
    {
        public string Dangnhap;
        protected void Page_Load(object sender, EventArgs e)
        {
            Dangnhap = Page.ClientScript.GetCallbackEventReference(this, "args", "callBackDangnhap", "context", null, true);
        }

        #region ICallbackEventHandler members
        public void RaiseCallbackEvent(string eventAgurment)
        {
            Dangnhap = eventAgurment;
        }


        public string GetCallbackResult()
        {
            Session["Tendangnhap"] = txtTendangnhap.Text;
            Session["Matkhau"] = txtPassword.Text;
            Session["q"] = "thanhcong";
            Dangnhap = "thanhcong";
            return Dangnhap;
        }
        #endregion
    }
}